package com.ljy.jymail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljy.common.utils.PageUtils;
import com.ljy.jymail.product.entity.CategoryEntity;
import com.ljy.jymail.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author liJiaYao
 * @email 1565643109@qq.com
 * @date 2021-12-12 10:50:46
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //层级菜单
    List<CategoryEntity> listWithTree();

    //批量删除
    void removeMenuByIds(List<Long> catId);


    //根据catelogId找到完整路径[父/子/孙]
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevelCategorys();



    Map<String, List<Catelog2Vo>> getCatalogJson();

}

